package data

import (
	"VideoMemberCard/app/payment/job/internal/biz"
	
	"context"
	"github.com/go-kratos/kratos/v2/log"
)

type paymentRepo struct {
	data *Data
	log  *log.Helper
}

func NewPaymentRepo(data *Data, logger log.Logger) biz.PaymentRepo {
	return &paymentRepo{
		data: data,
		log:  log.NewHelper(log.With(logger, "module", "repo/payment")),
	}
}

func (r *paymentRepo) CallbackPayment(ctx context.Context, id string) (bool, error) {
	// 验签
	// 解码
	// 投递任务到kafka
	return true, nil
}
